package com.github.ecbp.store.service.param;

import com.github.ecbp.common.validator.FlagValidator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author Created by 何德宝 on 2020/4/12 1:49
 * @Version V1.0
 * @Description: 产品属性分类productAttributeCategoryId和产品属性类型type参数
 */
@ApiModel(value = "ProductAttributeWithProductAttributeCategoryIdAndTypeParam", description = "产品属性分类productAttributeCategoryId和产品属性类型type参数")
@Data
public class ProductAttributeWithProductAttributeCategoryIdAndTypeParam implements Serializable {
    private static final long serialVersionUID = 8229192837423005820L;

    @ApiModelProperty("产品属性分类ID")
    private Long productAttributeCategoryId;

    @ApiModelProperty("属性的类型；0->规格；1->参数")
    @FlagValidator({"0", "1"})
    private Integer type;

}
